/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo360.mobilesafe.utils;

public class StringUtils {
    private static final char[] HEX_DIGITS = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D',
            'E', 'F' };

    public static final String toHexString(byte[] paramArrayOfByte) {
        StringBuilder localStringBuilder = new StringBuilder(paramArrayOfByte.length * 2);
        for (int i = 0; i < paramArrayOfByte.length; ++i) {
            localStringBuilder.append(HEX_DIGITS[((paramArrayOfByte[i] & 0xF0) >> 4)]);
            localStringBuilder.append(HEX_DIGITS[(paramArrayOfByte[i] & 0xF)]);
        }
        return localStringBuilder.toString();
    }
}